import request from '@/utils/request'

export function getAuthSession(){
    return request({
        url:'/api/auth/session',
        method:'get',
    })
}
export function getConversations(data){
    return request({
        url:'/backend-api/conversations',
        method:'get',
        params:data,
    })
}
export function chatRequirements(data){
    return request({
        url:'/backend-api/sentinel/chat-requirements',
        method:'post',
        data:data,
    })
}
export function postConversations(data){
    return request({
        url:'/backend-api/conversation',
        method:'post',
        data:data
    })
}
export function getConversation(id){
    return request({
        url:`/backend-api/conversation/${id}`,
        method:'get',
    })
}